/*
 * IndividualsCounterVisitor.hpp
 *
 *  Created on: 08-01-2011
 *      Author: Przemek
 */

#pragma once

#include "world/ElementsVisitor.hpp"

/*
 * Counts individuals in visited collection.
 */
class IndividualsCounterVisitor: public ElementsVisitor
{
	private:
		int counter;

	public:
		IndividualsCounterVisitor();
		void visit(Barrier& barrier);
		void visit(Individual& individual);
		void visit(MeatSupply& meatSupply);
		void visit(VegetableSupply& vegetableSupply);
		void visit(WaterSupply& waterSupply);

		int getCounter();
};
